set the member of sprite pPopupSprite to pPopupMember
set the loc of sprite pPopupSprite to the loc of sprite the spriteNum of me
else
set the loc of sprite pPopupSprite to point(-1000, -1000)
end if
end
on mouseLeave me
set the loc of sprite pPopupSprite to point(-1000, -1000)
end
on getPropertyDescriptionList
set p_list to [#pPopupMember: [#comment: "Member to show on popup:", #format: #graphic, #default: EMPTY], #pPopupSprite: [#comment: "Sprite with popup:", #format: #integer, #default: 60], #pDelay: [#comment: "Delay time (in ticks):", #format: #integer, #default: 0]]
return p_list
end
on getBehaviorDescription
return "This behavior displays a tooltip popup after a slight pause when the mouse is over a sprite." & RETURN & RETURN & "For this to work, a placeholder sprite must be in the score, offscreen. Specify the placeholder's channel number in the" && QUOTE && "Sprite with popup:" & QUOTE && "field." & RETURN & RETURN & "The popup's position is controlled by its registration point. A good way to set it is to run the movie, rollover the sprite with the tooltip, and stop the movie when the tooltip appears. It will be visible on the stage and you can edit the reg point in the paint window."